<template>
  <van-cell-group>
    <van-cell title="当前打分人数" :value="count" />
  </van-cell-group>
</template>

<script>
  import { Cell, CellGroup } from 'vant';

  export default {
    name: "Completion",
    components:{
      [Cell.name]: Cell,
      [CellGroup.name]: CellGroup,
    },
    data() {
      return {
        count: 0
      }
    },
    methods: {
      getData() {
        let _this = this;
        let token = _this.getCookie("token");
        _this.$http.post(_this.apiUrl("user/selection/completion"), {}, {
          headers: {
            'token': token,
            'sid': _this.$route.query.sid
          }
        })
          .then((res) => {
            // console.log(res.data);
            _this.count = res.data.data.count;
          });
      }
    },
    mounted() {
      let _this = this;
      _this.getData();
    }
  }
</script>

<style scoped>

</style>
